package com.fix.demo.day1;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;

public class Student {
	
	private String stname;
	@JsonIgnore
	private String password;
	private Integer age;
	
	@JsonFormat(pattern="yyyy-MM-dd hh:mm:ss a")
	private Date birthday;
	
	@JsonInclude(Include.NON_NULL)
	private String address;   //地址
	
	public Student() { }
	
	public Student(String stname, String password, Integer age) {
		this.stname = stname;
		this.password = password;
		this.age = age;
	}
	public String getStname() {
		return stname;
	}
	public void setStname(String stname) {
		this.stname = stname;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public Integer getAge() {
		return age;
	}
	public void setAge(Integer age) {
		this.age = age;
	}
	public Date getBirthday() {
		return birthday;
	}
	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	} 

}
